package com.umanji.board.domain;

import java.util.Date;
import java.util.UUID;

import javax.persistence.AttributeOverrides;
import javax.persistence.AttributeOverride;
import javax.persistence.Column;
import javax.persistence.Embedded;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.MapsId;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.umanji.generic.entity.UUIDEntity;
import com.umanji.security.domain.Users;

@Entity
@Table(name="umanji_notice_board")
public class Notices extends UUIDEntity<Notices> {

	@Column(name="TITLE", length=250)
	private String title;

	@Column(name="CONTENT", length=2000)
	private String content;

	@Column(name="NAME", length=50)
	private String name;

	@Column(name="READ_COUNT", length=5)
	private Integer readCount;

	@Temporal(TemporalType.DATE)
	private Date regDate;

	protected Notices() {
		// TODO Auto-generated constructor stub
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getReadCount() {
		return readCount;
	}

	public void setReadCount(Integer readCount) {
		this.readCount = readCount;
	}

	public Date getRegDate() {
		return regDate;
	}

	public void setRegDate(Date regDate) {
		this.regDate = regDate;
	}

}